/**
 * 
 */
package com.edocbase.desktop.plugins.mdiary;


/**
 * @author X61
 *
 */
public class MDairyPlugin{
	private MDiaryUI viewer = null;
	private static MDairyPlugin plugin = null;
	private TabItemCreator itemCreator = null;
	public MDairyPlugin() {
		super();
		plugin = this;
	}

	public MDiaryUI getPluginUI() {
		if (viewer == null){
			viewer = new MDiaryUI(this);
		}
		return viewer;
	}

	public static MDairyPlugin getPlugin() {
		return plugin;
	}

	public TabItemCreator getTabItemCreator(){
		if (itemCreator == null){
			itemCreator = new TabItemCreator(viewer);
		}
		return itemCreator;
	}
}
